/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:35
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:35
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL

/* 托管信息类 */
// 新增托管信息类
const escrowInfoCreate = (params) => axios.post(baseUrl + url.escrowInfo.create, params)

// 删除托管信息类
const escrowInfoDelete = (id) => axios.delete(baseUrl + url.escrowInfo.delete + `/${id}`)

// 修改托管信息类
const escrowInfoUpdate = (params, id) => axios.post(baseUrl + url.escrowInfo.update + `/${id}`, params)

// 获取某个托管信息类
const escrowInfoLoad = (id) => axios.get(baseUrl + url.escrowInfo.load + `/${id}`)

// 获取托管信息类列表
const escrowInfoPage = (params) => axios.get(baseUrl + url.escrowInfo.page, { params })

export default {
    escrowInfoCreate,
    escrowInfoDelete,
    escrowInfoUpdate,
    escrowInfoLoad,
    escrowInfoPage,
}